package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.dto.OrdersDetailsDTO;
import com.woniuxy.mesboot.entity.MesOrdersdetail;
import com.woniuxy.mesboot.mapper.MesOrdersdetailMapper;
import com.woniuxy.mesboot.service.OrdersdetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : 黑川
 * @version : 1.0
 * @Project : mes-boot
 * @Package : com.woniuxy.mesboot.service.impl
 * @ClassName : .java
 * @createTime : 2023/5/23 19:17
 * @Description :
 */
@Service
public class OrdersdetailServiceImpl implements OrdersdetailService {
    @Resource
    private MesOrdersdetailMapper ordersdetailMapper;

    @Override
    public int deleteByOrdersNo(String ordersNo) {
        return ordersdetailMapper.deleteByOrdersNo(ordersNo);
    }

    @Override
    public List<MesOrdersdetail> selectAll() {
        return ordersdetailMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return ordersdetailMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesOrdersdetail record) {
        return ordersdetailMapper.insert(record);
    }

    @Override
    public int insertSelective(OrdersDetailsDTO detailsDTO) {
        return ordersdetailMapper.insertSelective(detailsDTO);
    }

    @Override
    public MesOrdersdetail selectByPrimaryKey(Long id) {
        return ordersdetailMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesOrdersdetail record) {
        return ordersdetailMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesOrdersdetail record) {
        return ordersdetailMapper.updateByPrimaryKey(record);
    }
}
